
<%@page import="model.UsuarioIF,model.Instituicao,model.Triagem,dao.fabrica.FabricaDAO,dao.assinatura.TriagemDAO,java.util.List" %>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>PRAJUR - Listas</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="../../bootstrap/css/bootstrap.css" rel="stylesheet">
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
      .sidebar-nav {
        padding: 9px 0;
      }
    </style>
    <link href="../bootstrap/css/bootstrap-responsive.css" rel="stylesheet">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Fav and touch icons -->
    <link rel="shortcut icon" href="../assets/ico/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="bootstrap/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="bootstrap/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="bootstrap/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="bootstrap/ico/apple-touch-icon-57-precomposed.png">
  </head>

  <body>
  
  <% UsuarioIF usuario = (UsuarioIF) session.getAttribute("usuario"); 
  Instituicao instituicao = (Instituicao) session.getAttribute("instituicao");%>

    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <jsp:include page="../../template/topo.jsp" /> 
        </div>
      </div>
    </div>

    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span2">
          <div class="well sidebar-nav">
            <jsp:include page="../../template/menu.jsp" /> 
          </div><!--/.well -->
        </div><!--/span-->

        <div class="span9">
         
          <div class="row-fluid">

           <h1>Lista de Triagem</h1> <br>
           
		   <table class="table table-striped">
				<!-- <caption>Exemplo de tabela</caption>  -->
				<thead>
					<tr>
						<th>ID</th>
						<th>DATA</th>
						<th>OBS</th>
						<th>Editar</th>
						<th>Deletar</th>
					</tr>
				</thead>
				<tbody>
					<%
					    String texto = request.getParameter("texto");		
						TriagemDAO triagemDAO = FabricaDAO.createTriagem();
						
						List<Triagem> listaTriagem = null;
						
						
							listaTriagem = triagemDAO.getTriagems();	
						
						%>
						
						
					<%	for (int i = 0; i < listaTriagem.size(); i++)
						{
					%>
							<tr>
								<td><a href="editar.do?acao=verTriagem&t=<%=listaTriagem.get(i).getId()%>"><%= listaTriagem.get(i).getId()%></a></td>
								<td><%= listaTriagem.get(i).getData() %></td>
								<td><%= listaTriagem.get(i).getObs()%></td>
								<td><a href="editar.do?acao=editTriagem&t=<%=listaTriagem.get(i).getId()%>">Editar</a></td>
								<td><a href="editar.do?acao=delTriagem&t=<%=listaTriagem.get(i).getId()%>">Deletar</a></td>
							</tr>
					
					<% } %>
				</tbody>
			</table>
          
          </div><!--/row-->     
        </div><!--/span-->
      </div><!--/row-->

      <hr>

      <footer>
        <p>&copy; Company 2012</p>
      </footer>

    </div><!--/.fluid-container-->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="../bootstrap/js/bootstrap.js"></script>

  </body>
</html>
